//
//  SEGAutoHeightImageViewModel.h
//  Commom
//
//  Created by Clavis on 2019/7/29.
//

#import <Foundation/Foundation.h>

#if __has_include(<Commom/SEGText.h>)
#import <Commom/SEGText.h>
#else
#import "SEGText.h"
#endif

#define kAutoHeightImageViewHeight 35     // AutoHeightImageView的高度

typedef NS_ENUM(NSUInteger, SEGEnumAutoHeightImageViewType) {
    SEGEnumAutoHeightImageViewType_NO = 0, /*默认*/
};

@interface SEGAutoHeightImageViewModel : NSObject
@property (nonatomic, copy) NSString *pic; // 完整图片地址：http:...abc_width_height.png
@property (nonatomic, assign) CGFloat pictureWidth;//图片frame的宽度，此宽度和真实展示的宽度一致
@property (nonatomic, assign) NSInteger picCount;//图片张数，用于显示右下角图片张数
@end

@interface SEGAutoHeightImageViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumAutoHeightImageViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGAutoHeightImageViewModel *data;
- (instancetype)initWithData:(SEGAutoHeightImageViewModel *)data type:(SEGEnumAutoHeightImageViewType)type;
-(void)segAutoHeightImageViewLayout;

@end

